import Vue from 'vue'
import Router from 'vue-router'
import setup from '@/pages/setup/setup'
import userList from '@/pages/user/list'
import demo from '@/pages/demo/demo'
import demos from '@/pages/Home'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: '/userlist'
  }, {
    path: '/userlist',
    name: 'userlist',
    component: userList
  }, {
    path: '/setup',
    name: 'setup',
    component: setup
  }, {
    path: '/demo',
    name: 'demo',
    component: demo
  }, {
    path: '/demos',
    name: 'demos',
    component: demos
  }, {
    path: '*',
    redirect: '/userlist'
  }]
})
